
#ifndef _MEMBER_BLABEL_H_
#define _MEMBER_BLABEL_H_

#include <BTextFormat>
#include <BImage>
#include <BLabel>
#include "IAlignment.h"

#define label_member(label)		((member_BLabel*)((BLabel*)label)->_ptr)

namespace BWE
{
	class member_BLabel
	{
	public:
		member_BLabel(BLabel* label);
		~member_BLabel();

		bool imageShown();
		void freshRects();

		BLabel*				boss;
		BString				text;
		BColor				color;
		BImageHolder		image;
		BSize				imageSize;

		bool				dirty;
		BString				t_text;
		IAlignment			alignment;
		BSize				contentSize;
	};
}

#endif
